package cn.ml.chuji.oop.zuChe;

public class Bus extends MotoVehicle{
    // 车座数量
    private int seatCount;

    @Override
    public float zuJin(int days) {
        float price = this.getRiZuJin() * days;
        if(days >= 3 && days < 7){
            price = 0.9f*price;
        }else if(days >= 7 && days < 30) {
            price *= 0.8f;
        }else if(days >= 30 && days <150){
            price *= 0.7f;
        }else if(days >= 150){
            price *= 0.6f;
        }
        return price;
    }



    public int getSeatCount() {
        return seatCount;
    }


    public Bus() {
    }

    public Bus(String ID, String brand, int riZuJin, int seatCount) {
        super(ID, brand, riZuJin);
        this.seatCount = seatCount;
    }

    public void setSeatCount(int seatCount) {
        this.seatCount = seatCount;
    }
}
